Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 3 - Geometric Styles / Geometric Styles Reference
Functions


Getting and Setting the Pen Width

The pen width property of a style object specifies the width at which QuickDraw GX should draw a shape's contours. A pen width of 0 specifies a hairline. QuickDraw GX always draws hairlines at the resolution of the output device--one pixel wide. The pen width also affects dashing: QuickDraw GX scales a shape's dashes (in the y-coordinate direction) by the pen width. Also, the pen width affects the clip shape that QuickDraw GX uses to clip the dashes when a shape's clip dash attribute is set.

You can use the GXGetStylePen function to determine the pen width of a style object and the GXSetStylePen function to change the pen width of a style object.

The GXGetShapePen and GXSetShapePen functions provide a way to determine and change the pen width of the style object associated with a particular shape.


Subtopics
GXGetStylePen
GXSetStylePen
GXGetShapePen
GXSetShapePen

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help